package ai.ii.commander.manager.launcher.handle;

import ai.ii.commander.common.event.factory.SubscribeChannel;
import ai.ii.commander.user.publish.event.BaseUserEvent;
import ai.ii.commander.user.subscriber.BaseHandleUserEvent;
import ai.ii.commander.user.subscriber.UserChannelConstants;
import com.alibaba.rocketmq.shade.com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@SubscribeChannel(UserChannelConstants.CHANNEL_USER)
@Slf4j
public class TestHandler extends BaseHandleUserEvent<BaseUserEvent> {
    
    
    @Override
    public void onEvent(BaseUserEvent baseUserEvent) {
        log.info("type:{},message:{}",baseUserEvent.getClass().getName(), JSONObject.toJSONString(baseUserEvent));
    }
}
